Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning when using a textual date field specifier with the COMPAT locale provider #112548

Merged
merged 10 commits into from
Sep 10, 2024

Conversation

thecoop
Copy link
Member

@thecoop thecoop commented Sep 5, 2024

Warn users if they're using a textual specifier that might change with CLDR - we can't do a full deprecation cycle, but this will help

@thecoop thecoop added >non-issue :Core/Infra/Core Core issues without another label v8.16.0 v8.15.2 labels Sep 5, 2024
@thecoop thecoop requested a review from a team September 5, 2024 10:40
@thecoop thecoop changed the title Add warning when using a textual field specifier with the COMPAT locale provider Add warning when using a textual date field specifier with the COMPAT locale provider Sep 5, 2024
@thecoop thecoop added the auto-backport Automatically create backport pull requests when merged label Sep 5, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Core/Infra Meta label for core/infra team label Sep 5, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thecoop thecoop requested a review from a team September 6, 2024 12:58
@thecoop thecoop merged commit 7784d4f into elastic:main Sep 10, 2024
15 checks passed
@thecoop thecoop deleted the text-date-formatter-warning branch September 10, 2024 14:43
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.15

thecoop added a commit to thecoop/elasticsearch that referenced this pull request Sep 10, 2024
… locale provider (elastic#112548)

Some textual field specifiers change between COMPAT and CLDR, depending on locale
thecoop added a commit that referenced this pull request Sep 10, 2024
… locale provider (#112548) (#112709)

Some textual field specifiers change between COMPAT and CLDR, depending on locale

// check for all textual fields, and localized zone offset
private static final Predicate<String> CONTAINS_CHANGING_TEXT_SPECIFIERS = System.getProperty("java.locale.providers", "")
.contains("COMPAT") ? Pattern.compile("[EcGaO]|MMM|LLL|eee|ccc|QQQ|ZZZZ").asPredicate() : Predicates.never();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are plenty of integration ingest pipelines that instantiate date and date_index_name processors that match this regex.

Is there a way to mitigate the impact for them and reduce the noise from deprecation logs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v8.15.2 v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants